package com.yc.supermarket.entity;

import java.math.BigDecimal;
import java.util.Date;

/*会员实体类*/
public class Member {
    private int cardNumber;
    private int userId;
    private BigDecimal balance;
    private String registrationDate;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(int cardNumber) {
        this.cardNumber = cardNumber;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(String registrationDate) {
        this.registrationDate = registrationDate;
    }

    public Member(int userId, int cardNumber, BigDecimal balance, String registrationDate) {
        this.userId = userId;
        this.cardNumber = cardNumber;
        this.balance = balance;
        this.registrationDate = registrationDate;
    }

    public Member() {
    }

    @Override
    public String toString() {
        return "Member{" +
                "cardNumber=" + cardNumber +
                ", userId=" + userId +
                ", balance=" + balance +
                ", registrationDate=" + registrationDate +
                '}';
    }
}
